<?php echo  $this->menu['body'] ?>
<?php if(count($this->menu['Album']['Pictures'])>0): ?>
<div id="my Gallery" class="space gallery thickbox">
<?php /* foreach ($this->menu['Album']['Pictures'] as $pic): ?>
                    <img src="<?php
                        echo $this->url(
                            array('module' => 'content', 'controller'=>'album', 'action'=>'thumb', 'picture_id'=>$pic['id']    ),
                        'default', true)
                    ?>" alt=""/>
<?php endforeach; */ ?>
<?php $pictures= $this->menu->Album->getPictures(); ?>
<?php $picture_count = count($pictures); ?>
<?php $c = 0; ?>
<?php $i = 0; ?>
<table>
<?php while($i<$picture_count && $j<4): ?>
<?php $c++; ?>
<?php if($c==1): ?>
    <tr>
<?php endif; ?>

<?php if($i<$picture_count): ?>
        <td>
    <a class="thickbox"  href="<?php
                        echo $this->url(
                            array('module' => 'content', 'controller'=>'album', 'action'=>'image', 'picture_id'=>$pictures[$i]['id'],
                            'fake'=>'foto.jpg'),
                        'default', true)
                    ?>">
                    <img src="<?php
                        echo $this->url(
                            array('module' => 'content', 'controller'=>'album', 'action'=>'thumb', 'picture_id'=>$pictures[$i]['id']   ),
                        'default', true)
                    ?>" alt=""/></a>
            </td>
<?php else: ?>
            <td>k</td>
<?php endif; ?>
<?php if($c==4): ?>
    </tr>
    <?php $c = 0; ?>
<?php endif; ?>
<?php $i++; ?>
<?php endwhile; ?>
</table>
</div>
<?php endif; ?>

    <table cellspacing="0" style="width:100% ; margin:30px 0 20px  0 ; ">

        <tr>
            <td style="width:20px; height:20px; background: #f00;">&nbsp</td>
<td style="color:#fff; background: #0F2D64;    line-height:50%; font-weight:bold; font-size:12px; text-align:center;">
    <?php echo $this->language_root_menu['body'] ?>
</td>
            <td style="width:20px; background: #bebebe;">&nbsp</td>
            </tr>
    </table>